package com.csweimei.rentmanagementtreasure.http.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class SearchEntBean extends BaseResult{
    @SerializedName("data")
    private List<DataDTO> data;

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public static class DataDTO implements Serializable {
        @SerializedName("id")
        private int id;
        @SerializedName("CompanyLogo")
        private String companyLogo;
        @SerializedName("CompanyName")
        private String companyName;
        @SerializedName("IsAuth")
        private int isAuth;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCompanyLogo() {
            return companyLogo;
        }

        public void setCompanyLogo(String companyLogo) {
            this.companyLogo = companyLogo;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public String authState(){
            if (isAuth == 0){
                return "未认证";
            }else {
                return "已认证";
            }
        }

        public int getIsAuth() {

            return isAuth;
        }

        public void setIsAuth(int isAuth) {
            this.isAuth = isAuth;
        }
    }
}
